﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns='http://www.springframework.net'
         xmlns:db="http://www.springframework.net/database">


	<object type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core">
		<property name="ConfigSections" value="databaseSettings"/>
	</object>

	<!-- Database and NHibernate Configuration -->

	<db:provider id="DbProvider"
                   provider="SqlServer-2.0"
                   connectionString="Integrated Security=false; Data Source=CHANCHITO\SQLEXPRESS;Database=framework;User ID=sa;Password=Bulgar99;"/>

	<object id="sessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate21">
		<property name="DbProvider" ref="DbProvider"/>
		<property name="MappingResources">
			<list>
				<value>../../Resources/NHibernate-mappings/DummyClass.hbm.xml</value>
			</list>
		</property>
		<property name="HibernateProperties">
			<dictionary>
				<entry key="connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/>
				<entry key="dialect" value="NHibernate.Dialect.MsSql2005Dialect"/>
				<entry key="connection.driver_class" value="NHibernate.Driver.SqlClientDriver"/>
			</dictionary>
		</property>
	</object>

	<object id="hibernateTemplate" type="Spring.Data.NHibernate.Generic.HibernateTemplate,Spring.Data.NHibernate21">
		<property name="SessionFactory" ref="sessionFactory"/>
	</object>

	<object id="nhibernatePersister" type="Yawf.Data.NHibernatePersister,Yawf.Data">
		<property name="HibernateTemplate" ref="hibernateTemplate"/>
	</object>
</objects>
